<?php
echo $this->adminToolBar('rates', 'index', '/admin/rates/add/hotel_id/'.$this->hotel_id, '/admin/rates/edit/', '/admin/rates/delete/','');
?> 
<?php         
$this->title = "Rates";
$this->headTitle($this->title);
?>
<div class="mid-content" id="grid_rate">
    <table class="box-table-a" width="100%">
	<tr>
	    <th>Room Category</th>
	    <th>Rate Basis</th>
	    <th>From date</th>
	    <th>to date</th>
	    <th>Additional Info</th>
	    <th>&nbsp;</th>
              <th>&nbsp;</th>
	    <th>&nbsp;</th>	  
	</tr>
<?php foreach($this->rate_arr as $rate) : ?>
	<tr>
	    <td><?php echo $rate['rate_category'];?></td>
	    <td><?php echo $rate['rate_basis'] ;?></td>
	    <td><?php echo $rate['todate'] ;?></td>
	    <td><?php echo $rate['fromdate'] ;?></td>
	    <td><?php echo $rate['rate_additionalinfo'] ;?></td>
	    <td><a href="javascript: void(0);" onclick="loadPage('/admin/rates/edit/rate_id/<?php echo $rate['rate_id'] ?>/hotel_id/<?php echo $this->hotel_id;?>');" title="Edit"><img src="/images/admin/icons/edit.gif" alt=""/></a></td>
	    <td><a href="javascript: void(0);" onclick="loadPage('/admin/rates/ratefeatures/rate_id/<?php echo $rate['rate_id'] ?>/hotel_id/<?php echo $this->hotel_id;?>');" title="Edit"><img src="/images/admin/icons/a-plus.gif" alt=""/></a></td>
            <td><a rel="" onclick="deleteRates('<?php echo $rate['rate_id'];?>','<?php echo $rate['hotel_id'];?>')" href="javascript: void(0);"><img src="/images/admin/icons/disable.gif" alt=""/></a></td>
	</tr>
<?php 
	endforeach; 
?>
</table>
</div>
